package com.atguigu.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * @Author XuZhuHong
 * @CreateTime 2021/11/10 22:30
 */
public class CustomerBlockHandler{

    //返回參數 需要和被兜底的方法  返回參數一致      並且要有BlockException這個類
    public static CommonResult handleException(BlockException exception){
        return new CommonResult(2020,"自定义的限流处理信息......CustomerBlockHandler1");
    }

    //返回參數 需要和被兜底的方法  返回參數一致      並且要有BlockException這個類
    public static CommonResult handleException1(BlockException exception){
        return new CommonResult(2020,"自定义的限流处理信息......CustomerBlockHandler2");
    }
}